import { spawn, SpawnOptionsWithoutStdio, ChildProcessWithoutNullStreams } from 'child_process'
import { EventEmitter } from 'events'

class Repl extends EventEmitter {
  r: ChildProcessWithoutNullStreams
  constructor(name: string, option?: SpawnOptionsWithoutStdio) {
    super()
    this.r = spawn(name, option)
  }

}


export default Repl